<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script type="text/javascript" src="/js/plugins/jquery/jquery.min.js"></script>
</head>
<body>
    <div>
        <form id="evaluationFrom">
            <input type="hidden" name="orderId" th:value="${orderId}">
            <input type="hidden" name="goodsId" th:value="${goodsId}">
            <textarea name="evaluation"></textarea>
            <input type="button" value="添加" onclick="insertEvaluate()">
        </form>
    </div>
</body>
<script>
    function insertEvaluate(){
        $.post("/evaluate/insertEvaluate",$("#evaluationFrom").serialize(),function (result) {
            if (result.code ==200){
                alert("评论成功")
            }
        })
    }
</script>
</html>